package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {

       /* Student zs=new Student("张三",66,"河南","0007","2278");
        zs.eat() ;
        zs.sayHi();
        zs.sleep() ;
        zs.study();


        Teacher xx=new Teacher("xx",33,"河北",7000);
        xx.eat() ;
        xx.sayHi();
        xx.sleep() ;
        xx.teach();


        Doctor ss=new Doctor("ss",44,"浙江","医生");
        ss.eat();
        ss.sleep();
        ss.sayHi() ;
        ss.cut();*/






        Student xs=new Student("思甜",19,"驻马店","物联网","250");
        xs.eat();
        xs.study();
        xs.sayHi();
        xs.sleep();







        Teacher ls=new Teacher("苍老师",30,"日本",70000);
        ls.eat();;
        ls.sleep();
        ls.sayHi();
        ls.teach();






        Doctor ys=new Doctor("刘医生",40,"江苏","医生");
        ys.eat();
        ys.sleep();
        ys.sayHi();
        ys.cut();










       /* zs.name="张三";
        zs.age=22;
        zs.address ="河南驻马店";
        zs.className="2302";
        zs.sutID="250";
        zs.eat() ;
        zs.sayHi();
        zs.sleep() ;
        zs.study();



        ll.name="老李";
        ll.age=38;
        ll.address="马乡";
        ll.salary=700;
        ll.eat();
        ll.sleep();
        ll.sayHi() ;
        ll.teach() ;



        Doctor ys=new Doctor();
        ys.name="天使";
        ys.age=28;
        ys.address ="河南驻马店";
        ys.title="医生";
        ys.eat();
        ys.sleep();
        ys.sayHi() ;
        ys.cut();*/
    }
}
